#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int x = 0;
	int y = 0;
	while (scanf("%d", &x) != EOF)
	{
		if (x >= 10)
			y = 3 * x - 11;
		else if (x >= 1)
			y = 2 * x - 1;
		else
			y = x;
		printf("y=%d\n", y);
	}
	
	return 0;
}